<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">商品ID:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-product-id" class="form-control" name="row[product_id]" type="text" data-rule="required" placeholder="请输入商品ID">
        </div>
    </div>
    
    <!-- 商品属性配置 -->
    <div class="panel panel-default">
        <div class="panel-heading">
            <h4 class="panel-title">商品属性配置</h4>
            <small class="text-muted">一个商品可以拥有多种属性，共享库存但价格不同</small>
        </div>
        <div class="panel-body">
            
            <!-- 权益商品 -->
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">
                    <input type="checkbox" id="enable-equity" name="row[enable_equity]" value="1"> 权益商品
                </label>
                <div class="col-xs-12 col-sm-8">
                    <div class="equity-price-group" style="display: none;">
                        <div class="input-group">
                            <span class="input-group-addon">权益价格</span>
                            <input id="c-equity-price" class="form-control" name="row[equity_price]" type="number" step="0.01" placeholder="请输入权益商品价格">
                            <span class="input-group-addon">元</span>
                        </div>
                        <small class="help-block text-muted">权益商品的特殊价格</small>
                    </div>
                </div>
            </div>
            
            <!-- 积分商品 -->
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">
                    <input type="checkbox" id="enable-points" name="row[enable_points]" value="1"> 积分商品
                </label>
                <div class="col-xs-12 col-sm-8">
                    <div class="points-price-group" style="display: none;">
                        <div class="input-group">
                            <span class="input-group-addon">积分价格</span>
                            <input id="c-points-price" class="form-control" name="row[points_price]" type="number" step="0.01" placeholder="请输入积分商品价格">
                            <span class="input-group-addon">元</span>
                        </div>
                        <small class="help-block text-muted">积分商品的特殊价格</small>
                    </div>
                </div>
            </div>
            
            <!-- 助农商品 -->
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">
                    <input type="checkbox" id="enable-agriculture" name="row[enable_agriculture]" value="1"> 助农商品
                </label>
                <div class="col-xs-12 col-sm-8">
                    <div class="agriculture-price-group" style="display: none;">
                        <div class="input-group">
                            <span class="input-group-addon">助农价格</span>
                            <input id="c-agriculture-price" class="form-control" name="row[agriculture_price]" type="number" step="0.01" placeholder="请输入助农商品价格">
                            <span class="input-group-addon">元</span>
                        </div>
                        <small class="help-block text-muted">助农商品的特殊价格</small>
                    </div>
                </div>
            </div>
            
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">上下架状态:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-shelf_status" class="form-control" name="row[shelf_status]">
                <option value="1" selected>上架</option>
                <option value="0">下架</option>
            </select>
        </div>
    </div>
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>